using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace TMSIM.Client.BizGIS.UI.Legend
{
    public partial class LegendForm : SysCommon.FrmSubParent
    {
        public LegendForm()
        {
            InitializeComponent();
            pic_legend.Image = AppResources.Res.Resources.GetImage("legend.jpg");

            vScrollBar1.Maximum = pic_legend.Height;
        }

        private void vScrollBar1_Scroll(object sender, ScrollEventArgs e)
        {
            pic_legend.Top = - vScrollBar1.Value + 20;
        }
    }
}